package service;

import dao.ManageDao;
import dao.impl.ManageDaoImpl;
import pojo.Manage;


import java.util.List;

public class ManageService {
    private ManageDao manageDao=new ManageDaoImpl();
    public List<Manage> searchAll(){return manageDao.searchAll();}
    public void add(Manage manage){
        manageDao.add(manage);
    }
    public void delete(String bookId){
        manageDao.delete(bookId);
    }
    public void update(Manage manage) {
        manageDao.update(manage);
    }
    public Manage searchId(String id) {
        return manageDao.searchId(id);
    }
    public Manage searchLend(String lend) { return manageDao.searchLend(lend);}
    public void deleteLend(String lendTime) { manageDao.deleteLend(lendTime);}
}
